from PO.Page.Page2 import Page2
from selenium.webdriver.common.by import By
# 页面类层
class Page3(Page2):
    #点击我的酒仙
    my_loc=(By.XPATH,'/html/body/div[2]/div/div[2]/ul/li[1]/div[1]/a')
    #点击关闭
    close_loc=(By.XPATH,'//*[@id="uGuideBox"]/div/div/span')
    #查看我的收货地址
    arrdess_loc=(By.XPATH,'/html/body/div[4]/div[2]/div[2]/div[4]/a[3]/span')
    # 断言是否已经到了收货地址页面
    dy4_text=(By.XPATH,'/html/body/div[4]/div[3]/div[1]/h2')
    #删除收货地址
    delete_loc=(By.CLASS_NAME,'controlRemove')

    def my(self):
        self.click(self.my_loc)

    def close(self):
        self.click(self.close_loc)

    def dy4(self):
        self.log_text('收货地址')
    def arrdess(self):
        self.click(self.arrdess_loc)

    def delete(self):
        self.click(self.delete_loc)

    def jx_lj_03(self):
        self.my()
        self.close()
        self.updown()
        self.arrdess()
        print(self.dy4())
        self.delete()



